<html>
<body>
<script>
function person(firstname,lastname,age)
{
	this.firstname=firstname;
	this.lastname=lastname;
	this.age=age;
	this.changeName=changeName;

function changeName(name)
{
	this.lastname=name;
}
}

var myMother=new person("Aye Aye","Mar",58);
myMother.changeName("Cho");
document.write("My Mother name is "+myMother.firstname+" "+myMother.lastname+" and she is "+myMother.age);
</script>
</body>
</html>